<script>
  import {
    mapActions
  } from 'vuex'
  export default {
    onLaunch: function() {
      uni.showLoading({
        title:'初始化中...',
        mask:true
      })
      this.setBusinessInfo()
      console.log('App Launch')
      this.setUserCollectInfo()
      setTimeout(()=>{
        uni.hideLoading()
      },1000)
    },
    onShow: function() {
      console.log('App Show')
    },
    onHide: function() {
      console.log('App Hide')
    },
    methods: {
      ...mapActions(['setBusinessInfo', 'setUserCollectInfo'])
    }
  }
</script>

<style lang="scss">
  @import 'static/font/iconfont.css';

  view,
  h1,
  h2,
  h3,
  h4,
  h5,
  text {
    background-color: #222;
  }

  button {
    line-height: normal;
    border-radius: 0;
    border: none;
    margin: 0;
    padding: 0;
    box-shadow: none;

    &::after {
      border: none;
    }
  }

  .zp-l-line-rpx {
    display: none;
  }

  .zp-l-text-rpx {
    color: #969696 !important;
  }
  .collect {
    position: absolute;
    right: 20rpx;
    top: 20rpx;
    width: 80rpx;
    height: 80rpx;
    display: flex;
    border-radius: 50%;
    align-items: center;
    justify-content: center;
    background: rgba(255, 255, 255, 0.8)!important;
    &::before{
      content:'';
      display: block;
      width: 40rpx;
      height: 40rpx;
      background: url('./static/aixin.png') no-repeat;
      background-size: 100% 100%;
    }
  }
</style>
